<?php

/*Author Panos Sakkos */

class User
{
	var $id;
	var $username;
	var $password;
	var $email;
	var $user_type;
	var $name;
	var $surname;
	var $activated;

	function __construct() 
	{
		$this->id = -1;	
		$this->username = "";	
		$this->password = "";	
		$this->email = "";	
		$this->user_type = "";	
		$this->name = "";	
		$this->surname = "";	
		$this->activated = 0;
	}		

	/* Mutators */

	function SetId($id)
	{
		$this->id = $id;
	}

	function SetUsername($username)
	{
		$this->username = $username;
	}

	function SetPassword($password)
	{
		$this->password = $password;
	}

	function SetEmail($email)
	{
		$this->email = $email;
	}

	function SetUserType($user_type)
	{
		$this->user_type = $user_type;
	}

	function SetName($name)
	{
		$this->name = $name;
	}

	function SetSurname($surname)
	{
		$this->surname = $surname;
	}

	function SetActivate($value)
	{
		$this->activated = $value;
	}

	/* Accessors */
    function GetId()
    {
        return $this->id;
    }
	
	function GetUsername()
	{
		return $this->username;
	}

	function GetEmail()
	{
		return $this->email;
	}

	function GetUserType()
	{
		return $this->user_type;
	}

	function GetName()
	{
		return $this->name;
	}

	function GetSurName()
	{
		return $this->surname;
	}

	function GetPassword()
	{
		return $this->password;
	}

	function Activated()
	{
		return $this->activated;
	}
}

?>
